package cn.zyx.common.properites;

import lombok.Data;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

/**
 * 缓存配置类
 */
@Data
@Configuration
public class CacheProperties implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String SYS_CACHE = "sysCache";

    public static final String SYS_CONFIG = "sys.config_";

    public static final String CACHE_DICT_MAP = "sys.dictMap";

    public static final String USER_CACHE = "sys.user_";
    public static final String ACCESS_KEY_CACHE = "sys.accessKey_";
    public static final String USER_CACHE_LOGIN_NAME_ = "ln_";
    public static final String USER_CACHE_ID_ = "id_";
    public static final String USER_CACHE_LIST_BY_OFFICE_ID_ = "oid_";

    public static final String CACHE_ROLE_LIST = "roleList";
    public static final String CACHE_TOP_MENU = "topMenu";
    public static final String CACHE_MENU_LIST = "menuList";
    public static final String CACHE_DATA_RULE_LIST = "dataRuleList";
    public static final String CACHE_AREA_LIST = "areaList";
    public static final String CACHE_OFFICE_LIST = "officeList";
    public static final String CACHE_OFFICE_ALL_LIST = "officeAllList";

    public static final String CACHE_SPLIT = "_user.id_";

    public static final String CACHE_MENU_NAME_PATH_MAP = "menuNamePathMap";

    // ----------------------------- test 数据 -----------------------------
    public static final String T_CANAL_TEST = "t_canal_test_";

    public static final String REDIS_LOCK = "redisLock";
}
